
<div style="margin-bottom:20px;">
    
    <form action="<?php echo $this->Html->url(array('action' => 'add')); ?>" method="POST" id="filter_add">
    
    <h4><?php __('Tỉnh/Thành'); ?>:
        <select onchange="document.getElementById('NhdDeviceResourceCityId').value = this.value;document.getElementById('filter_add').submit()" name="filter_city_id">
            <?php foreach($cities as $c ) {
                $selected = "";
                if($c["id"] == $city["id"])
                {
                    $selected = 'selected="selected"';
                }
            ?>
                <option value="<?php echo $c["id"] ?>" <?php echo $selected; ?> ><?php echo $c["name"] ?></option>
            <?php } ?>
        </select>
    </h4>
    <h4><?php __('Năm'); ?>:
        <select onchange="document.getElementById('DeviceResourceYear').value = this.value;document.getElementById('filter_add').submit()" name="filter_year">        
            <option><?php echo $year ?></option>
        </select>
    </h4>
    <h4><?php __('Quý'); ?>:
        <select onchange="document.getElementById('DeviceResourceQuarter').value = this.value;document.getElementById('filter_add').submit()" name="filter_quarter">        
            <option><?php echo $quarter ?></option>
        </select>
    </h4>
    </form>
    
</div>

